package com.lyj.mode.decorator;

/**
 * 卡布奇诺
 * @author:liyajie
 * @createTime:2022/2/24 17:48
 * @version:1.0
 */
public class Cappuccino extends Coffee{
    public Cappuccino(){
        setDesc("点了一杯卡布奇诺");
        setPrice(100);
    }

    @Override
    public float cost() {
        System.out.println("当前价格为：" + super.getPrice());
        return super.getPrice();
    }
}
